<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
	<title>Matriz 2</title>
	<link type="text/css" rel="stylesheet" href="#{request.contextPath}/css/tabela.css"></link>
</h:head>
<h:body>
	
	<div class="linha">
		<div class="celula celulaCanto">
			*
		</div>
		<br/>
		<ui:repeat value="#{controller.m2.matriz[0].elemento}" var="linha">
			<div class="celula celulaTopo">
				<h:outputText value="0" />
			</div>
			<br/>
		</ui:repeat>
	</div>
	
	<ui:repeat value="#{controller.m2.matriz}" var="linha">
		<div class="linha">
			<div class="celula celulaLateral"><h:outputText value="#{linha.indice}"/></div>
			<br/>
			<ui:repeat value="#{linha.elemento}" var="elemento">
				<div class="celula">
					<h:outputText value="#{elemento}" />
				</div>
				<br/>
			</ui:repeat>
		</div>
	</ui:repeat>
</h:body>
</html>